package com.usian.admin.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
@RequestMapping("/api/v1/news")
public interface WemediaFeign {

    @GetMapping("/findById/{id}")
    public WmNews findById(@PathVariable Integer id);

    @PostMapping("/update")
    public ResponseResult updateWmNews(@RequestBody WmNews wmNews);

    @GetMapping("/findOne/{id}")
    public WmUser findWmUserById(@PathVariable Integer id);

}
